package com.sunducation.wts.databinding2

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable

class User : BaseObservable {
    var firstName: String
        @Bindable get() = field
        set(value) {
            field = value
            notifyPropertyChanged(BR.firstName)
        }

    var lastName: String
        @Bindable get() = field
        set(value) {
            field = value
            notifyPropertyChanged(BR.lastName)
        }
    constructor(fName: String, lName: String) {
        firstName = fName
        lastName = lName
    }

    fun getBRFirstName():Int{
        return BR.firstName
    }

    fun getBRLastName():Int{
        return BR.lastName
    }

}